package com.xiyi_design.printer_manage.controller;

import com.xiyi_design.printer_manage.pub.Result;
import com.xiyi_design.printer_manage.service.PrinterProductService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping(value = "/printer")
public class PrinterController {
    private static final Logger logger = LoggerFactory.getLogger(PrinterController.class);

    @Autowired
    private PrinterProductService printerProductService;

    @RequestMapping("/getPrinterProductList")
    public Result getPrinterProductList (String printerId) {

        return Result.succeed(printerProductService.getPrinterProductList(printerId));
        //return Result.fail(0, "查询失败");

    }

}
